From: Michał Zieliński Date: Fri, 24 May 2013 19:04:52 +0000 (+0200) Subject: Preferences: Add link to user contributions on value of "Number of edits". X-Git-Tag: 1.31.0-rc.0~19589 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=c143ab00dd4dda5fea10f1956d96bb5826c8d6a0;p=lhc%2Fweb%2Fwiklou.git Preferences: Add link to user contributions on value of "Number of edits". Bug: 43637 Change-Id: I10a662051fc23ff007b8749c4dc46a4b53a7f4bd --- diff --git a/includes/Preferences.php b/includes/Preferences.php index a6d530f567..848cd32831 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -229,10 +229,14 @@ class Preferences { 'section' => 'personal/info', ); + $editCount = Linker::link( SpecialPage::getTitleFor( "Contributions", $userName ), + $lang->formatNum( $user->getEditCount() ) ); + $defaultPreferences['editcount'] = array( 'type' => 'info', + 'raw' => true, 'label-message' => 'prefs-edits', - 'default' => $lang->formatNum( $user->getEditCount() ), + 'default' => $editCount, 'section' => 'personal/info', );